package 人事管理系统.Tables;

public class Employee {
    //员工信息 员工号Eno，员工姓名Ename，员工性别Sex，员工学历，Education，员工所属部门号Dno
    private String Eno;
    private String Ename;
    private String Sex;
    private String Education;
    private String Dno;
    private String Duty;

    //无参构造
    public Employee() {
    }
    //带参构造
    public Employee(String eno, String ename, String sex, String education, String dno, String duty) {
        Eno = eno;
        Ename = ename;
        Sex = sex;
        Education = education;
        Dno = dno;
        Duty = duty;
    }


    //get and set

    public String getEno() {
        return Eno;
    }

    public void setEno(String eno) {
        Eno = eno;
    }

    public String getEname() {
        return Ename;
    }

    public void setEname(String ename) {
        Ename = ename;
    }

    public String getSex() {
        return Sex;
    }

    public void setSex(String sex) {
        Sex = sex;
    }

    public String getEducation() {
        return Education;
    }

    public void setEducation(String education) {
        Education = education;
    }

    public String getDno() {
        return Dno;
    }

    public void setDno(String dno) {
        Dno = dno;
    }

    public String getDuty() {
        return Duty;
    }

    public void setDuty(String duty) {
        Duty = duty;
    }

    //重写tostring方法

    @Override
    public String toString() {
        return "Employee{" +
                "Eno='" + Eno + '\'' +
                ", Ename='" + Ename + '\'' +
                ", Sex='" + Sex + '\'' +
                ", Education='" + Education + '\'' +
                ", Dno='" + Dno + '\'' +
                ", Duty='" + Duty + '\'' +
                '}';
    }
}
